/**
 * *******************************************
 * user: zmq
 * describe: area服务器的user模块 负责用户基本信息相关的API
 * created:
 * date: 2021/8/18
 * *******************************************
 */
import {Application, FrontendSession} from "pinus";

export default function (app: Application) {
    return new UserHandler(app);
}

/**
 * 用户操作API
 */
export class UserHandler {

    /**
     * 构造函数
     * @param {Application} app
     */
    constructor(private app: Application) {

        this.app = app;

    }

    /**
     *
     * @param  {Object}   msg     request message
     * @param  {Object}   session current session object
     */
    public async open(msg: any, session: FrontendSession) {

        console.log("msg -->111111111111 " , msg);
        return {code: 200, msg: 'arra server is ok.'};
    }

}